package com.sannuo.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sannuo.common.domain.Menu;
import com.sannuo.system.dao.MenuMapper;
import com.sannuo.system.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceIpml extends ServiceImpl<MenuMapper,Menu> implements MenuService{
    @Autowired
    private MenuMapper menuMapper;


    @Override
    public List<Menu> selectMenu() {
        return menuMapper.selectMenu();
    }

    @Override
    public int updateMenu(Menu menu) {
        return menuMapper.updateMenu(menu);
    }

    @Override
    public int addMenu(Menu menu) {
        return menuMapper.addMenu(menu);
    }

    @Override
    public int deleteMenu(int id) {
        return menuMapper.deleteMenu(id);
    }
}
